package net.neptech;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.kafka.annotation.EnableKafka;
import org.springframework.web.socket.config.annotation.EnableWebSocket;

@SpringBootApplication(scanBasePackages = "net.neptech")
@ComponentScan(basePackages = {
        "net.neptech",
        "net.neptech.config",
        "net.neptech.service"
})
@EntityScan(basePackages = "net.neptech.entity")  // 显式扫描实体
@EnableDiscoveryClient  //注册到nacos
@EnableWebSocket
@EnableKafka
public class WebSocketApplication {
    public static void main(String[] args) {

        SpringApplication.run(WebSocketApplication.class, args);
    }
}